#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

int main1() {
    int m, n;
    cin >> m >> n;
    vector<vector<int>> v(n, vector<int>(m));

    for (int i = 0; i < m; i++)
    {
        for (int j = 0; j < n; j++)
        {
            cin >> v[j][i];
        }
    }

    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < m; j++)
        {
            cout << v[i][j] << " ";
        }
        cout << endl;
    }

    return 0;
}

class Solution {
public:
    typedef long long ll;

    long long maxWater(vector<int>& arr) {
        ll water_sum = 0;
        if (arr.size() < 3) return water_sum;

        for (int i = 1; i < arr.size() - 1; i++)
        {
            int l = 0, r = 0;
            for (int j = i; j >= 0; j--)
            {
                l = max(l, arr[j]);
            }
            for (int j = i; j <= arr.size() - 1; j++)
            {
                r = max(r, arr[j]);
            }
            water_sum += (min(l, r) - arr[i]);
        }


        return water_sum;
    }
};



// ===================================================================================

void func1()
{
    int n, m, sum = 0;
    cin >> n >> m;

    vector<int> v(n - m);

    for (int i = 0; i < v.size(); i++)
    {
        cin >> v[i];
        sum += v[i];
    }

    double _max = 0, _min = 0;

    _min = m + sum; _max = 5 * m + sum;

    printf("%.5lf %.5lf\n", _min * 1.0 / n, _max * 1.0 / n);
}



int main()
{



    return 0;
}